import 'package:app/pages/userinfo_module/personal_files_module/personal_files_model.dart';
import 'package:app/services/address.dart';
import 'package:app/services/dio_manager.dart';
import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class PersonalFilesController extends GetxController with GetTickerProviderStateMixin{




  PersonalFilesModel? model;

  requestData()async{

    var json = await DioManager().kkRequest(Address.hrEmployeeRead,method: 'get');

    PersonalFilesModel _model = PersonalFilesModel.fromJson(json);

    model = _model;

    update();

  }

  List<BadgeTab> tabs = [BadgeTab(text: "基础信息")
    ,BadgeTab(text: "学历信息"),BadgeTab(text: "家庭情况")];

  TabController? tabController;

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();

    tabController = TabController(length: tabs.length, vsync: this);


    requestData();

  }
}